package com.service;

import java.util.List;

import com.dao.BaseDao;
public class routeService<T> {
	private BaseDao dao;

	public void AddRoute(T route) throws Exception{
		dao.addObject(route);
	}
	public List<T> SelectRoute(String str) throws Exception{
		List<T> routes = dao.getObjects(str);
		return routes;
	}
	public void UpdateRoute(T route) throws Exception{
		dao.updateObject(route);
	}
	public BaseDao getDao() {
		return dao;
	}

	public void setDao(BaseDao dao) {
		this.dao = dao;
	}


}